#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
#ifdef _WIN32
    //_putenv_s("GST_DEBUG", "appsrc:7,appsink:7,h264parse:7,mppvideodec:7");   //gstreamer的输出优先级
#else
    //setenv("GST_DEBUG", "appsrc:7,appsink:7,h264parse:7,mppvideodec:7", 1);
#endif
    //注册结构体
    qRegisterMetaType<SettingsData>("SettingsData");

    //QDir::setCurrent(QCoreApplication::applicationDirPath());   //changed path to exe path

    QApplication a(argc, argv);
    MainWindow w;
    return a.exec();
}    
